<div>
  <?php echo "<h3>".$this->title."</h3>"?>
  <?php echo "Ostatnio dodane filmy!"?><br>
  
 <?php $wynik = $this->wynik;
 foreach($wynik as $x ) :
            $temp = $this->escape($x['title']);
            $temper = $x['idmovietype'];
 //Zend_Debug::dump($temp);
 if($temper == 1)
     {$temp2 = "ogladajhd";}
 elseif($temper==2)
     {$temp2 = "ogladajsd";}
 elseif($temper==3)
     {$temp2 = "ogladajserial";}
 elseif($temper == 4)
     {$temp2 = "ogladajjunior";}

 echo "       ";?>
 <a href="<?php echo $this->url(array('controller'=>'zalogowani', 
             'action'=>$temp2, 'iduser'=>$this->iduser, 'nazwa'=>$temp));?>"><img src="<?php echo $this->baseUrl()."/miniatures/".$this->escape($x['miniature']); ?>" width="170px" height="230px"/></a>
 <?php endforeach;

?>
</div>